import request from '@/utils/request'


export default{
    
    // 申请列表
    invoiceApplyList(page,size) {
        return request({
            url: `manage/invoice/invoice/index?page=${page}&size=${size}`,
            method: 'get'
        })
    },
    invoiceApplyBind(id){
        return request({
            url: `manage/invoice/invoice/invoiceBind?id=${id}`,
            method: 'get'
        })
    },
    invoiceApply(data){
        return request({
            url: `manage/invoice/invoice/applyResult`,
            data,
            method:'post'
        })
    },
    invoiceExpress(data){
        return request({
            url: `manage/invoice/invoice/invoiceExpress`,
            data,
            method:'post'
        })
    },
    platformCanApplyList(page,size){
        return request({
            url: `manage/invoice/invoice/platformCanApplyList?page=${page}&size=${size}`,
            method: 'get'
        })
    },
    merchantCanApplyList(page,size)
    {
        return request({
            url: `manage/companyClient/invoice/canApplyList?page=${page}&size=${size}`,
            method: 'get'
        })
    },
    merchantInvoiceApply(data){
        return request({
            url: `manage/companyClient/invoice/apply`,
            data,
            method:'post'
        })
    }
}
